<!--
 * @Author: GongSaiPeng
 * @Date: 2024-04-11 16:24:57
 * @LastEditTime: 2024-04-11 20:50:53
 * @LastEditors: GongSaiPeng
 * @Description: form入口
 * @FilePath: \main-app\src\components\vForm\index.vue
-->
<script setup lang="ts" name="">
// 创建
import VFormDesigner from "./VFormDesigner.vue";
// 展示
import VFormRender from "./VFormRender.vue";
import { ref, reactive } from "vue";
import type { TabsPaneContext } from "element-plus";
const activeName = ref("first");

const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event);
};
</script>

<template>
  <div>
    <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
      <el-tab-pane label="User" name="first">
        <!-- VFormDesigner设置 -->
        <VFormDesigner />
      </el-tab-pane>
      <el-tab-pane label="Config" name="second">
        <!-- VFormRender -->
        <VFormRender />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<style lang="less" scoped></style>
